package com.bookstore.service;

import com.bookstore.dto.OrderDTO;
import com.bookstore.entity.Order;

import org.springframework.http.ResponseEntity;
import java.util.List;

public interface OrderService {
    OrderDTO createOrder(OrderDTO orderDTO);
    ResponseEntity<List<OrderDTO>> getUserOrders(Long userId);
    ResponseEntity<OrderDTO> getOrderById(Long orderId);
    ResponseEntity<?> updateOrderStatus(Long orderId, String status);
    ResponseEntity<?> deleteById(Long orderId);

     /**
      * 支付订单
      */
     ResponseEntity<?> payOrder(Long orderId, String paymentMethod);
    
    // /**
    //  * 获取订单物流信息
    //  */
    // ResponseEntity<?> getOrderLogistics(Long orderId);
}